package com.todo.event.activity.application.service;

import com.todo.common.common.entity.response.page.PageResult;
import com.todo.event.activity.application.entity.bo.EventDetailBO;
import com.todo.event.activity.application.entity.bo.EventInfoBO;
import com.todo.event.activity.application.entity.condition.EventInfoConditionBO;
import com.todo.event.activity.common.enums.EventDetailStatusEnum;


import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/1/7 13:12
 * @description
 */
public interface EventDetailService {

    /**
     * 新增事件详情
     *
     * @param eventDetailBO
     * @return
     */
    Boolean insertEventDetail(EventDetailBO eventDetailBO);

    /**
     * 根据事件Id查询事件详情-用户管理后台查询
     *
     * @param eventId
     * @return
     */
    EventDetailBO queryEventDetail(Long eventId);

    /**
     * 根据事件code查询事件详情
     *
     * @param eventCode
     * @return
     */
    EventDetailBO queryEventDetailByCode(String eventCode);

    /**
     * 更新事件详情
     *
     * @param eventDetailBO
     * @return
     */
    Boolean updateEventDetail(EventDetailBO eventDetailBO);

    /**
     * 根据主键删除事件详情
     *
     * @param id
     * @return
     */
    Boolean removeEventDetailById(Long id);

    /**
     * 更新事件详情状态
     *
     * @param id
     * @param oldStatus
     * @param newStatus
     * @return
     */
    Boolean updateEventDetailStatus(Long id, EventDetailStatusEnum oldStatus, EventDetailStatusEnum newStatus);

    /**
     * 多条件查询事件详情
     *
     * @param eventInfoCondition
     * @return
     */
    PageResult<EventInfoBO> queryEventInfoPageByCondition(EventInfoConditionBO eventInfoCondition);

    /**
     * 根据事件主题和tag查询事件详情
     *
     * @param topicName
     * @param tag
     * @return
     */
    List<EventDetailBO> queryEventDetailByTopic(String topicName, String tag);
}
